package com.md.client.helper;

import com.md.base.BaseClient;
import com.md.config.feign.EndpointConfig;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * @author 刘骄阳
 * 2024-10-11 15:19
 */
@Configuration
@RequiredArgsConstructor
public class OpenLogsConfiguration {
  private final EndpointConfig endpointConfig;

  @Bean
  public DefaultOpenLogsController defaultOpenLogsController(final BaseClient baseClient) {
    return new DefaultOpenLogsController(baseClient, endpointConfig.getLog());
  }
}
